
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<!--{template "wap_header"}-->
</head>
<body id="orders"> 
<header class="">
                <div class="left-box">
                    <a class="goback" href="javascript:history.back()"><label gaevent="InnerLink|Click|touch/back">返回</label></a>
                </div>
                <h1>我的优惠券</h1>
</header>
 
<menu>
      <ul>
       <li {if $status==0} class="current" {/if} gaevent="InnerLink|Click|touch/orders/list/paid" ><a href="wap.php?mod=me&code=coupon&status=0">未使用</a></li>
       <li {if $status==1} class="current" {/if}  gaevent="InnerLink|Click|touch/orders/list/unpaid"  ><a href="wap.php?mod=me&code=coupon&status=1">已使用</a></li>
       <li {if $status==2} class="current" {/if} gaevent="InnerLink|Click|touch/orders/list/paid" ><a href="wap.php?mod=me&code=coupon&status=2">已过期</a></li>
  </ul>
</menu>





<div class="body">
{if $ticket_all}
<!--{loop $ticket_all $i $value}-->
        <div class="order-box">
        <div class="coupon-list"> <a href="?wap.php?view={$value['productid']}">    <img src="{echo imager($value['img'], IMG_Small);}" width="110" height="72" />  </a>
                               {$value['flag']} <br />
{TUANGOU_STR}券:{$value['number']}   <br />
密码：{$value['password']}
{if $value['status']==0}
  <ul><li>过期时间：<font color="red">{echo date('Y-m-d', $value['perioddate']);}</font></li></ul>
{elseif $value['status']==1}         
     <ul><li>{TUANGOU_STR}券使用时间：<font color="blue">$value['usetime']</font></li></ul>

{/if}                 
       
{if ini('coupon.c2phone.enabled')&&$value['status']==0} <p class="c-submit c-small" style="background-color:#FFB4B4;border: 1px solid #B70000;"> <a href="wap.php?mod=apiz&code=c2phone&cid={$value['ticketid']}">  <input style="background-color:red" type="submit"  value="发送到手机" /></a></p>{/if}  </div> 
 </div>
 <!--{/loop}-->
 
 <table ><tr ><td><p>{~page_moyo()}</p></td></tr></table>
 {else}
 
  <table width="100%"><tr><td width="100%" height="100px" align="center"><p>
  {if $status==0}  暂无未使用的{TUANGOU_STR}券{/if}{if $status==1}   暂无已使用的{TUANGOU_STR}券{/if} {if $status==2}   暂无已过期的{TUANGOU_STR}券 {/if}
</p></td></tr></table>
{/if} 
 
</div>





<!--{template "wap_footer"}-->

</body>
</html>
